<?php
//CONTROLLER

include 'Core/class_generator.php';

$language;

if(!isset($_GET['language'])){
   $language = 'EN';
}else{
    $language = $_GET['language'];
}


$Principal = new Generator("Template/index.p.html");
    
if($language == 'ES'){

$Principal->Generate("Data/datos.xml");
}

if($language == 'EN'){

    $Principal->Generate("Data/datosEN.xml");
}

?>
